package com.example.orchid.coordinatorlayoutdemo.activity;

import android.graphics.Color;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;

import com.example.orchid.coordinatorlayoutdemo.R;

public class TwoActivity extends BaseActivity {
    private Toolbar mToolbar;
    private CollapsingToolbarLayout mCollapsingToolbar;


    @Override
    protected int getContentView() {
        return R.layout.activity_two;
    }

    @Override
    protected void initView() {
        mToolbar = findView(R.id.toolbar);


        setSupportActionBar(mToolbar);
        ActionBar actionBar = getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);

        mCollapsingToolbar = findView(R.id.collapsing_toolbar);
        mCollapsingToolbar.setTitle("CSDN废墟的树");

        mCollapsingToolbar.setContentScrimColor(Color.YELLOW);
    }

}
